#ifndef CAIDAN1BUTTON_H
#define CAIDAN1BUTTON_H

#include <huanbutton.h>

namespace Ui {
class Caidan1Button;
}
/*
 * huanbutton功能不够菜单1用
 */
class Caidan1Button : public QQtClickWidget
{
    Q_OBJECT

public:
    explicit Caidan1Button ( QWidget* parent = 0 );
    Caidan1Button ( const Caidan1Button& other );
    ~Caidan1Button();

    Caidan1Button& operator = ( const Caidan1Button& other );
    bool operator == ( const Caidan1Button& other );

    int lightNo() const;
    QString sceneName() const;
    QString sceneIcon() const;

    int& lightNo();
    QString& sceneName();
    QString& sceneIcon();

    void setTextFont ( QFont font );
    //内部的
    void setTextFont2 ( QFont font );
    void setIconSize ( QSize size );
    void setIconSize2 ( QSize size );
    QSize iconSize();
    QSize iconSize2();

    //更新后新设置生效
    void updateWidget();

private:
    Ui::Caidan1Button* ui;
    int mLightNo;
    QString mSceneName;
    QString mSceneIcon;
};

Q_DECLARE_METATYPE ( Caidan1Button )

#endif // CAIDAN1BUTTON_H
